package com.studyroom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("snacks")
public class Snack {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String name;
    
    private BigDecimal price;
    
    private String description;
    
    @TableField("image_url")
    private String imageUrl;
    
    private Integer stock;
    
    private Integer status;  // 0-下架，1-上架
    
    private LocalDateTime createdAt;
    
    private LocalDateTime updatedAt;
} 